<?php
$html=file_get_contents("films.txt");
preg_match_all('@(?s)">电影<(.+?)">剧集<@', $html, $m, PREG_SET_ORDER);
$html=$m[0][0];
preg_match_all('@(?s)<a href="([^"]+)" title="([^"]+)".+?data-original="([^"]+)@', $html, $m, PREG_SET_ORDER);
foreach ($m as $index=>$film){
    echo "第", $index+1, "部电影\n";
    echo "\t$film[2]\n";
    echo "\t$film[1]\n";
    echo "\t$film[3]\n";
}